﻿// <copyright file="ISuppressCsrfCheck.cs" company="Barry Dorrans">
// Copyright (c) 2008 All Right Reserved, Barry Dorrans
//
// This source is subject to the Microsoft Permissive License.
// Please see the License.txt file for more information.
// All other rights reserved.
//
// THIS CODE AND INFORMATION ARE PROVIDED "AS IS" WITHOUT WARRANTY OF ANY 
// KIND, EITHER EXPRESSED OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE
// IMPLIED WARRANTIES OF MERCHANTABILITY AND/OR FITNESS FOR A
// PARTICULAR PURPOSE.
//
// </copyright>
// <author>Barry Dorrans</author>
// <email>barryd@idunno.org</email>
// <date>2008-12-15</date>
// <summary>
// Provides a marker interface for excluding a page from the CSRF checks. This allows
// pages which have no code behind to opt-out for the checks (the Dominick Baier 1990 coding practises scenario).
// </summary>

namespace Idunno.AntiCsrf
{
    /// <summary>
    /// A marker interface for excluding a page from the CSRF checks. This allows
    /// pages which have no code behind to opt-out for the checks.
    /// </summary>
    /// <remarks>
    /// To use add &lt;%@ Implements Interface="Idunno.AntiCsrf.ISuppressCsrfCheck" %&gt; to your ASPX page.
    /// </remarks>
    [System.Diagnostics.CodeAnalysis.SuppressMessage(
        "Microsoft.Design", 
        "CA1040:AvoidEmptyInterfaces",
        Justification = "As pages without a code behind class cannot use attributes this enables them to opt-out.")]
    public interface ISuppressCsrfCheck
    {
    }
}
